import java.util.Random;

/**
 * Created by 84995 on 2020/1/14.
 */
public class test5 {

    public static void main(String[] args) {


        Random d=new Random();

       int   a= d.nextInt(9999+1) -1;


        String s = get(a);
        System.out.println(s);
    }

    private static String get(int i) {
      String a=i+"";
        for (int j = 0; j <a.length() ; j++) {
            if (a.length()==1){
                a="0"+i;
            }else if (a.length()==2){
                a="0"+i;
            }
            else if (a.length()==3){
                a="0"+i;
            }
        }
        return a;
    }
}
